package com.sudo.dao.admin.entity;

import com.sudo.common.annotation.mybatis.CreateBy;
import com.sudo.common.annotation.mybatis.CreateTime;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Table(name = "sys_role_menu")
public class SysRoleMenu {
    @Id
    private Integer id;
    /**
     * 角色代码
     */
    @Column(name = "role_code")
    private String roleCode;

    /**
     * 菜单代码
     */
    @Column(name = "menu_code")
    private String menuCode;

    @CreateTime
    @Column(name = "create_time")
    private LocalDateTime createTime;
    @CreateBy
    @Column(name = "create_by")
    private String createBy;


    public interface Field{
        String id = "id";
        String roleCode = "roleCode";
        String menuCode = "menuCode";
        String createBy = "createBy";
        String createTime = "createTime";
    }

}
